﻿var http = require('http');
var optfile = require('./module/optfile');

http.createServer(function(request, response){
	// response.writeHead(200, {'Content-Type': 'text/html; charest = utf-8'});
	response.writeHead(200, {'Content-Type': 'image/jpeg'});
	if(request !== '/favicon.ico'){
		optfile.readImg('./image/girl.jpg', response)
		// response.end('');
	}
}).listen(8000);
console.log('server runing at http://192.168.178.7:8000');